package com.loop.homework.animal;

public abstract class Animal {
    private Integer age;
    private String color;

    public Integer getAge() {
        return age;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public Animal() {
    }

    public Animal(Integer age, String color) {
        this.age = age;
        this.color = color;
    }

    //定义让子类必须重写的抽象方法
    public abstract void eat(String something);
}
